package demo.isolib.mousehandler {
	import demo.isolib.Tile;
	import com.sshc625.log.Logger;

	/**
	 *
	 * double mode of tile.
	 *
	 */
	public class ToggleSelection extends DummyMouseHandler {

		override public function execute(params:Array = null):void {
			Logger.log("ToggleSelection.execute(" + params + ")");

			if (!tile.selectable) {
				return;
			}
			
			tile.selected = !tile.selected;
		}
	}
}